/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package servercom;

import java.util.ArrayList;
import java.util.List;

/**
 *
 * @author Administrator
 */
public class RecordDAO {
    private ArrayList<CellDAO> _lstCell;

    /**
     * @return the _lstCell
     */
    public ArrayList<CellDAO> getLstCell() {
        return _lstCell;
    }

    /**
     * @param lstCell the _lstCell to set
     */
    public void setLstCell(ArrayList<CellDAO> lstCell) {
        this._lstCell = lstCell;
    }
    
    public boolean Compare(RecordDAO record, ArrayList<Integer> _indexPK) {
        int count = 0;
        
        for (int i = 0; i < _indexPK.size(); i++) {
            if(_lstCell.get(i).Compare(record._lstCell.get(i)))
            {
                count++;
            }
        }
        
        if(count == _indexPK.size())
            return true;
        else
            return false;
    }

    //Search
}
